package com.etime.perfectschool.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("schoolnews")
public class SchoolNews  {
    @TableId(value = "newsId")
    private int newsId;
    private String newsTitle;
    private String newsContent;
    private String newsPublishTime;
    private int newsUpvote;
    private int id;
    @TableField(exist = false)
    private List<NewsPhoto> newsPhotoList;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private List<NewsComments> newsCommentsList;

}
